const Router = require('koa-router')
const LogController = require('../controllers/log.controller')
const jwt = require('../middlewares/jwt.middleware')

const router = new Router()
const logController = new LogController()
router.prefix('/api/logs')

router.get('/', jwt, logController.findAll)

router.get('/:id', jwt, logController.findOne)

router.patch('/:id', jwt, logController.updateOne)

router.delete('/:id', jwt, logController.deleteOne)

module.exports = router